package com.example.survey23.mapper;

import com.example.survey23.entity.QuestionBankProblem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 23Group
 * @since 2022-11-10
 */
@Repository
public interface QuestionBankProblemMapper extends BaseMapper<QuestionBankProblem> {
    @Select("select max(id) from  question_bank_problem")
    int getMaxSurveyBaseId();

    @Select("select * from  question_bank_problem where belong_id = #{belongId}")
    List<QuestionBankProblem> getListByBelongId(int belongId);

}
